<!--div2 begin-->
    <div id="div2">
    	<div id="div2_left">
        	<dl>
            	<dt>会员优惠体检推荐</dt>
                <dd class="tj_pic"><a href="#"><img src="images/tj_pic.jpg" alt="点击进入体检频道" width="240" height="67" /></a></dd>
                <dd id="tj">
					<ul>
					<?php foreach ($exam_list as $exam ){ ?>
						<li><a href="hospiatl/exam/<?php echo $exam['Id'];?>" target="_blank"><?php echo $exam['name']; ?></a><p><?php echo $exam['svip'];?></p></li>
					<?php }?>
					</ul>
				</dd>
            </dl>
      </div>
      <div id="div2_center">
      	<dl>
        	<dt>合作医院列表</dt>
            <dd class="hospital">
			<?php if($hosnum > 10) {//如果查询出的医院总数量大于10个 ?>
            	<p class="hospital_class_pager">
                <span id="JK_0" class="c_0" onMouseMove="JavaScript:ChangeDiv(0)" onMouseOut="JavaScript:hi()" >综合医院</span>
                <span id="JK_1" class="c_1" onMouseMove="JavaScript:ChangeDiv(1)" onMouseOut="JavaScript:hi()" style="cursor:hand;">专科医院</span>
                </p>
                <div id="JKDiv_0" style="padding-top:5px;" onMouseMove="JavaScript:overhi()" onMouseOut="JavaScript:hi()">
                <?php foreach ($hospital_list as $hos){ 
						if ($hos['rank']!='专科医院'){
					?>
				<div class="yybox">
					<div class="yy_imgbox">
                    	<p class="yyimg">
							<img src="
								<?php //输出图片地址
									if($hos['image']!=''){
											echo 'uploads/hosimg/thumb/'.$hos['image'];
										}else{
											echo 'images/hdno.gif';
										} ?>" width="48" height="48" /></p>
                                        </div>
                <div class="yytext">
                	<p class="yymc">
						<a href="hospital/index/<?php echo $hos['hs_id'];?>" target="_blank" ><?php echo $hos['sname']; ?></a>
                     </p>		
					<p class="tsks" >
                       <?php echo $hos['addr']; ?> 
                    </p>
					<p class="yhxx"><a href="" target="_blank">查看优惠</a> | 评论数<span class="pls">(<?php echo $hos['com_num']; ?>)</span></p>
                </div>
               </div>
               <?php }} ?>
            </div>
            <div id="JKDiv_1" style="padding-top:5px;display:none;" onMouseMove="JavaScript:overhi()" onMouseOut="JavaScript:hi()">
            <?php foreach ($hospital_list as $hos){
				if ($hos['rank']=='专科医院'){
				?>
				<div class="yybox">
					<div class="yy_imgbox">
                    	<p class="yyimg">
							<img src="
								<?php //输出图片地址
									if($hos['image']!=''){
											echo 'uploads/hosimg/thumb/'.$hos['image'];
										}else{
											echo 'images/hdno.gif';
										} ?>" width="48" height="48" /></p>
                                        </div>
                <div class="yytext">
                	<p class="yymc">
						<a href="hospital/index/<?php echo $hos['hs_id'];?>" target="_blank" ><?php echo $hos['sname']; ?></a>
                     </p>		
					<p class="tsks" >
                       <?php echo $hos['addr']; ?>
                    </p>
					<p class="yhxx"><a href="" target="_blank">查看优惠</a> | 评论数<span class="pls">(<?php echo $hos['com_num']; ?>)</span></p>
                </div>
               </div>
               <?php }} ?>
            </div>
                  <script defer="defer" language="JavaScript" type="text/javascript"> 
	  //参数: divID --当前DIV的ID号；divName  --要改变的这一组DIV的命名前缀；zDivCount --这一组DIV的个数-1;cName --标签链接ID
	  	var s=1;
		var t=5000;//循环周期(1秒)
		var timer;
		var divId=0;
		function ChangeDiv(divId) { 
		 	clearTimeout(timer);
			s=(divId>=1)?0:divId+1
			if (s==1){
				document.getElementById('JK_'+divId).className='c_'+divId;
				document.getElementById('JK_'+s).className='c_'+s; 
			}else{
				document.getElementById('JK_'+divId).className='c_'+s;
				document.getElementById('JK_'+s).className='c_'+divId; 
			}
			document.getElementById('JKDiv_'+s).style.display="none"; 
			document.getElementById('JKDiv_'+divId).style.display="block"; 
		} 
		function hi(){
				timer=setTimeout("sh()",t)
			}
		function overhi(){
				clearTimeout(timer);
			}
		function sh(){
				s=(divId>=1)?0:divId+1
				if (s==1){
					document.getElementById('JK_'+divId).className='c_'+divId;
					document.getElementById('JK_'+s).className='c_'+s; 
				}else{
					document.getElementById('JK_'+divId).className='c_'+s;
					document.getElementById('JK_'+s).className='c_'+divId; 
				}
				document.getElementById('JKDiv_'+s).style.display="none"; 
				document.getElementById('JKDiv_'+divId).style.display="block";
				divId=s;
				timer=setTimeout("sh()",t)
		}
		sh()
	 </script>
	 <?php }else{ //如果查询出的医院数量小于等于10?>
	 <p class="hospital_class_pager"><span style="line-height: 22px; float: right; padding-right: 10px;"><span style="color:#ED8C21;margin:0 2px;"><?php echo $area;?></span>共有<span style="color:#ED8C21;margin:0 2px;"><?php echo $hosnum;?></span>家大型合作医院</span></p>
		 <?php foreach ($hospital_list as $hos){ ?>
				<div class="yybox">
					<div class="yy_imgbox">
                    	<p class="yyimg">
							<img src="
								<?php //输出图片地址
									if($hos['image']!=''){
											echo 'uploads/hosimg/thumb/'.$hos['image'];
										}else{
											echo 'images/hdno.gif';
										} ?>" width="48" height="48" /></p>
                                        </div>
                <div class="yytext">
                	<p class="yymc">
						<a href="hospital/index/<?php echo $hos['hs_id'];?>" target="_blank" ><?php echo $hos['sname']; ?></a>
                     </p>		
					<p class="tsks" >
                       <?php echo $hos['addr']; ?> 
                    </p>
					<p class="yhxx"><a href="" target="_blank">查看优惠</a> | 评论数<span class="pls">(<?php echo $hos['com_num']; ?>)</span></p>
                </div>
               </div>
               <?php } ?>
	 <?php } ?>
            </dd>
        </dl>
      </div>
        <div id="div2_right">
        	<div class="div2_right1">
            	<dl>
                	<dt>医院资讯</dt>
                    <dd>
                    <?php foreach ($article_yyzx_list as $r){ ?>
                    <div class="hdbox">
					<div class="hdimgbox">
                    	<p class="hdimg">
							<img src="
								<?php //输出图片地址
									if($r['image']!=''){
											echo 'uploads/indeximg/thumb/'.$r['image'];
										}else{
											echo 'images/nosmall.gif';
										} ?>" width="48" height="48" /></p>
                                        </div>
                <div class="hdtext">
                	<p class="hdmc">
                   <a target="_blank" href="<?php echo 'article/show_article/'.$r['Id'];?>" title="<?php echo $r['title'];?>"><?php echo $r['tit'];?></a>
                    </p>		
					<p class="hdinfo"><?php echo $r['sum'];?>&nbsp;<span>[<?php echo date('m.d',$r['puttime']); ?>]</span></p>
                </div>
               </div>
               <?php }?>
               <div class="clear"></div>
               <div class="hdinfo_more"><a href="" target="_self" class="xiansuo">提供线索</a><a href="article/list_article/2" target="_blank" class="morelink">查看更多>></a></div>
            </dd>
                </dl>
            </div>
            <div class="div2_right2">
            	<dl>
                	<dt>名医馆最新信息</dt>
                    <dd></dd>
                </dl>
            </div>
        </div>
    </div>
    <div class="clear"></div>
    <!--div2 end-->